package com.yict.csms.system.entity;

import java.util.Date;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.yict.csms.resourceplan.entity.RtgcFlWharfOption;

/**
 * 字典表
 * 
 * @author tortoi.huang
 * 
 */
@Entity
@Table(name = "CSMS_DATA_DICT")
public class DataDict {

	@Id
	@Column(name = "DICTID")
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	private String dictid;
	@Column(name = "DATACODE")
	private String datacode;
	@Column(name = "DISPLAYNAME")
	private String displayname;
	@Column(name = "DATAVALUE")
	private String datavalue;
	@Column(name = "DATATYPE")
	private String datatype;
	@Column(name = "REMARKS")
	private String remarks;
	@Column(name = "CREATEPERSON")
	private Long createperson;
	@Column(name = "CREATEDATE")
	private Date createdate;
	@Column(name = "UPDATEPERSON")
	private Long updateperson;
	@Column(name = "UPDATEDATE")
	private Date updatedate;
	@OneToMany(mappedBy = "dataDict", fetch = FetchType.LAZY)
	private Set<RtgcFlWharfOption> rtgcFlWharfOption;

	public String getDictid() {
		return dictid;
	}

	public void setDictid(String dictid) {
		this.dictid = dictid;
	}

	public String getDatacode() {
		return datacode;
	}

	public void setDatacode(String datacode) {
		this.datacode = datacode;
	}

	public String getDisplayname() {
		return displayname;
	}

	public void setDisplayname(String displayname) {
		this.displayname = displayname;
	}

	public String getDatavalue() {
		return datavalue;
	}

	public void setDatavalue(String datavalue) {
		this.datavalue = datavalue;
	}

	public String getDatatype() {
		return datatype;
	}

	public void setDatatype(String datatype) {
		this.datatype = datatype;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Long getCreateperson() {
		return createperson;
	}

	public void setCreateperson(Long createperson) {
		this.createperson = createperson;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Long getUpdateperson() {
		return updateperson;
	}

	public void setUpdateperson(Long updateperson) {
		this.updateperson = updateperson;
	}

	public Date getUpdatedate() {
		return updatedate;
	}

	public void setUpdatedate(Date updatedate) {
		this.updatedate = updatedate;
	}

	public Set<RtgcFlWharfOption> getRtgcFlWharfOption() {
		return rtgcFlWharfOption;
	}

	public void setRtgcFlWharfOption(Set<RtgcFlWharfOption> rtgcFlWharfOption) {
		this.rtgcFlWharfOption = rtgcFlWharfOption;
	}
}
